import React, { Component } from 'react'
import TestClass from './components/TestClass'
import TestFun from './components/TestFun'
export default class App extends Component {
  // 这里不知道为什么要求number类型，传递字符串不报错
  render() {
    return (
      <div>
        <div>
          <h2>App组件</h2>
        </div>
        <div>
          <TestClass name='张三' age="99" ></TestClass>

          <TestFun name={'李四'} age={'666'}></TestFun>
        </div>
        
      </div>
    )
  }
}
